import request from '@/utils/request'

// 查询HtProject列表
export function listHtProject(query) {
  return request({
    url: '/api/v1/ht-project',
    method: 'get',
    params: query
  })
}

export function ShowHtProjectTree(query) {
  return request({
    url: '/api/v1/ht-project/tree',
    method: 'get',
    params: query
  })
}
export function DeleteHtProjectTalent(data) {
  return request({
    url: '/api/v1/ht-project/talent',
    method: 'delete',
    data: data
  })
}

// 查询HtProject详细
export function getHtProject(id) {
  return request({
    url: '/api/v1/ht-project/' + id,
    method: 'get'
  })
}

// 新增HtProject
export function addHtProject(data) {
  return request({
    url: '/api/v1/ht-project',
    method: 'post',
    data: data
  })
}

export function addHtProjectTalent(data) {
  return request({
    url: '/api/v1/ht-project/talent',
    method: 'post',
    data: data
  })
}

// 修改HtProject
export function updateHtProject(data) {
  return request({
    url: '/api/v1/ht-project/' + data.id,
    method: 'put',
    data: data
  })
}

// 删除HtProject
export function delHtProject(data) {
  return request({
    url: '/api/v1/ht-project',
    method: 'delete',
    data: data
  })
}

